define({ "api": [
  {
    "type": "get",
    "url": "统一返回示例说明",
    "title": "",
    "name": "返回说明",
    "group": "0返回说明",
    "version": "1.0.0",
    "success": {
      "fields": {
        "200": [
          {
            "group": "200",
            "type": "type",
            "optional": false,
            "field": "code",
            "description": "<p>0 成功 1 失败</p>"
          },
          {
            "group": "200",
            "type": "type",
            "optional": false,
            "field": "message",
            "description": "<p>信息</p>"
          },
          {
            "group": "200",
            "type": "type",
            "optional": false,
            "field": "data",
            "description": "<p>数据</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "返回示例:",
          "content": "{\n    code: 0,\n    message: \"管理员登录成功\",\n    data: {\n      type: type,\n      currentAuthority: \"admin\",\n      user: \"admin\",\n      token: ’sawfawfawfawfawfawgsv‘,\n    },\n}",
          "type": "type"
        }
      ]
    },
    "filename": "router/login.js",
    "groupTitle": "0返回说明"
  },
  {
    "type": "POST",
    "url": "/createUser",
    "title": "创建用户",
    "name": "创建用户",
    "group": "用户管理",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "Array",
            "optional": false,
            "field": "address",
            "description": "<p>地址数组</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "email",
            "description": "<p>邮箱</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "phone",
            "description": "<p>手机号</p>"
          },
          {
            "group": "Parameter",
            "type": "string/base64",
            "optional": false,
            "field": "avatar",
            "description": "<p>头像</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "password",
            "description": "<p>密码</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "userName",
            "description": "<p>用户名</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "roleName",
            "description": "<p>角色名</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "detailAddress",
            "description": "<p>详细地址</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "currentAuthority",
            "description": "<p>当前权限角色</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "请求示例:",
          "content": "address: [\"北京市\", \"市辖区\", \"西城区\"]\navatar: \"\ndetailAddress: \"北京南\"\nemail: \"8474354495@qq.com\"\npassword: \"admin2\"\nphone: \"15734182982\"\nroleName: \"user\"\nuserName: \"托尔斯泰\"",
          "type": "type"
        }
      ]
    },
    "success": {
      "fields": {
        "200": [
          {
            "group": "200",
            "type": "Array",
            "optional": false,
            "field": "address",
            "description": "<p>地址数组</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "_id",
            "description": "<p>用户id</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "email",
            "description": "<p>邮箱</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "phone",
            "description": "<p>手机号</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "userName",
            "description": "<p>用户名</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "roleName",
            "description": "<p>角色名</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "detailAddress",
            "description": "<p>详细地址</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "返回示例:",
          "content": " {\n    \"success\": true,\n    \"data\": {\n        \"address\": [\n            \"天津市\",\n            \"市辖区\",\n            \"河东区\"\n        ],\n        \"type\": \"account\",\n        \"_id\": \"60efcecc34001d0336b0828b\",\n        \"email\": \"84744495@qq.com\",\n        \"phone\": 15757182985,\n        \"avatar\": [\n          {\n            name: \"avatar_1626940010564.png\"\n            status: \"done\"\n            uid: \"avatar_1626940010564\"\n            url: \"http://localhost:3001/upload/avatar_1626940010564.png\"\n          }\n        ],\n        \"userName\": \"c c2\",\n        \"roleName\": \"user\",\n        \"detailAddress\": \"s\",\n        \"currentAuthority\": \"user\",\n        \"registerTime\": \"2021-07-15T05:59:40.059Z\",\n        \"__v\": 0\n    },\n    \"message\": \"添加用户成功\",\n    \"code\": 0\n}",
          "type": "type"
        }
      ]
    },
    "filename": "router/user.js",
    "groupTitle": "用户管理"
  },
  {
    "type": "POST",
    "url": "/removeUser",
    "title": "删除用户",
    "name": "删除用户",
    "group": "用户管理",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "userName",
            "description": "<p>用户名</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "返回示例:",
          "content": "{\n   success: true,\n   message: \"删除成功\",\n   code: 0,\n }",
          "type": "type"
        }
      ]
    },
    "filename": "router/user.js",
    "groupTitle": "用户管理"
  },
  {
    "type": "get",
    "url": "/currentUser",
    "title": "当前用户查询",
    "name": "当前用户查询",
    "group": "用户管理",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "_id",
            "description": "<p>用户id</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "200": [
          {
            "group": "200",
            "type": "Array",
            "optional": false,
            "field": "address",
            "description": "<p>地址数组</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "_id",
            "description": "<p>用户id</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "email",
            "description": "<p>邮箱</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "phone",
            "description": "<p>手机号</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "userName",
            "description": "<p>用户名</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "roleName",
            "description": "<p>角色名</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "detailAddress",
            "description": "<p>详细地址</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "currentAuthority",
            "description": "<p>当前权限角色</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "返回示例:",
          "content": " {\n    \"success\": true,\n    \"data\": {\n        \"address\": [\n            \"天津市\",\n            \"市辖区\",\n            \"河东区\"\n        ],\n        \"type\": \"account\",\n        \"_id\": \"60efcecc34001d0336b0828b\",\n        \"email\": \"84744495@qq.com\",\n        \"phone\": 15757182985,\n        \"avatar\": \"\",\n        \"userName\": \"c c2\",\n        \"roleName\": \"user\",\n        \"detailAddress\": \"s\",\n        \"currentAuthority\": \"user\",\n        \"registerTime\": \"2021-07-15T05:59:40.059Z\",\n        \"__v\": 0\n    },\n    \"message\": \"查询用户成功\",\n    \"code\": 0\n}",
          "type": "type"
        }
      ]
    },
    "filename": "router/user.js",
    "groupTitle": "用户管理"
  },
  {
    "type": "get",
    "url": "/findUser",
    "title": "用户列表查询",
    "name": "用户列表查询",
    "group": "用户管理",
    "version": "1.0.0",
    "success": {
      "fields": {
        "200": [
          {
            "group": "200",
            "type": "Array",
            "optional": false,
            "field": "address",
            "description": "<p>地址数组</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "_id",
            "description": "<p>用户id</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "email",
            "description": "<p>邮箱</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "phone",
            "description": "<p>手机号</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "userName",
            "description": "<p>用户名</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "roleName",
            "description": "<p>角色名</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "detailAddress",
            "description": "<p>详细地址</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "currentAuthority",
            "description": "<p>当前权限角色</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "返回示例:",
          "content": " {\n    \"success\": true,\n    \"data\": {\n        \"address\": [\n            \"天津市\",\n            \"市辖区\",\n            \"河东区\"\n        ],\n        \"type\": \"account\",\n        \"_id\": \"60efcecc34001d0336b0828b\",\n        \"email\": \"84744495@qq.com\",\n        \"phone\": 15757182985,\n        \"avatar\": [\n          {\n            name: \"avatar_1626940010564.png\"\n            status: \"done\"\n            uid: \"avatar_1626940010564\"\n            url: \"http://localhost:3001/upload/avatar_1626940010564.png\"\n          }\n        ],\n        \"userName\": \"c c2\",\n        \"roleName\": \"user\",\n        \"detailAddress\": \"s\",\n        \"currentAuthority\": \"user\",\n        \"registerTime\": \"2021-07-15T05:59:40.059Z\",\n        \"__v\": 0\n    },\n    \"message\": \"查询用户成功\",\n    \"code\": 0\n}",
          "type": "type"
        }
      ]
    },
    "filename": "router/user.js",
    "groupTitle": "用户管理"
  },
  {
    "type": "POST",
    "url": "/updateUser",
    "title": "用户更新",
    "name": "用户更新",
    "group": "用户管理",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "Array",
            "optional": false,
            "field": "address",
            "description": "<p>地址数组</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "_id",
            "description": "<p>用户id</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "email",
            "description": "<p>邮箱</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "phone",
            "description": "<p>手机号</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "userName",
            "description": "<p>用户名</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "roleName",
            "description": "<p>角色名</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "detailAddress",
            "description": "<p>详细地址</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "currentAuthority",
            "description": "<p>当前权限角色</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "200": [
          {
            "group": "200",
            "type": "Array",
            "optional": false,
            "field": "address",
            "description": "<p>地址数组</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "_id",
            "description": "<p>用户id</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "email",
            "description": "<p>邮箱</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "phone",
            "description": "<p>手机号</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "userName",
            "description": "<p>用户名</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "roleName",
            "description": "<p>角色名</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "detailAddress",
            "description": "<p>详细地址</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "currentAuthority",
            "description": "<p>当前权限角色</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "返回示例:",
          "content": " {\n    \"success\": true,\n    \"data\": {\n        \"address\": [\n            \"天津市\",\n            \"市辖区\",\n            \"河东区\"\n        ],\n        \"type\": \"account\",\n        \"_id\": \"60efcecc34001d0336b0828b\",\n        \"email\": \"84744495@qq.com\",\n        \"phone\": 15757182985,\n        \"avatar\": [\n          {\n            name: \"avatar_1626940010564.png\"\n            status: \"done\"\n            uid: \"avatar_1626940010564\"\n            url: \"http://localhost:3001/upload/avatar_1626940010564.png\"\n          }\n        ],\n        \"userName\": \"c c2\",\n        \"roleName\": \"user\",\n        \"detailAddress\": \"s\",\n        \"currentAuthority\": \"user\",\n        \"registerTime\": \"2021-07-15T05:59:40.059Z\",\n        \"__v\": 0\n    },\n    \"message\": \"查询用户成功\",\n    \"code\": 0\n}",
          "type": "type"
        }
      ]
    },
    "filename": "router/user.js",
    "groupTitle": "用户管理"
  },
  {
    "type": "post",
    "url": "/login",
    "title": "用户登录接口",
    "name": "用户登录接口",
    "group": "登录",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "userName",
            "description": "<p>用户名</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "password",
            "description": "<p>密码</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "请求示例:",
          "content": "{\n  userName : 'admin',\n  password:'sss'\n}",
          "type": "type"
        }
      ]
    },
    "success": {
      "fields": {
        "200": [
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "type",
            "description": ""
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "currentAuthority",
            "description": "<p>当前权限角色</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "user",
            "description": "<p>用户名</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "token",
            "description": "<p>token</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "返回示例:",
          "content": "{\n    code: 0,\n    message: \"管理员登录成功\",\n    data: {\n      type: type,\n      currentAuthority: \"admin\",\n      user: \"admin\",\n      token: ’sawfawfawfawfawfawgsv‘,\n    },\n}",
          "type": "type"
        }
      ]
    },
    "filename": "router/login.js",
    "groupTitle": "登录"
  },
  {
    "type": "get",
    "url": "/getProvince",
    "title": "获得省市区数据",
    "name": "获得省市区数据",
    "group": "省市区",
    "version": "1.0.0",
    "success": {
      "examples": [
        {
          "title": "返回示例:",
          "content": "{\n    code: 0,\n    message: \"管理员登录成功\",\n    data: {\n      上海市: {\n        市辖区: [\"黄浦区\", \"徐汇区\", \"长宁区\", \"静安区\", \"普陀区\", \"虹口区\", \"杨浦区\", \"闵行区\", \"宝山区\", \"嘉定区\", \"浦东新区\", \"金山区\", \"松江区\", \"青浦区\",…]\n        市辖区2: [\"黄浦区\", \"徐汇区\", \"长宁区\", \"静安区\", \"普陀区\", \"虹口区\", \"杨浦区\", \"闵行区\", \"宝山区\", \"嘉定区\", \"浦东新区\", \"金山区\", \"松江区\", \"青浦区\",…]\n      }\n    },\n}",
          "type": "type"
        }
      ]
    },
    "filename": "router/province.js",
    "groupTitle": "省市区"
  },
  {
    "type": "post",
    "url": "/createMenu",
    "title": "创建菜单",
    "name": "创建菜单",
    "group": "菜单",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "Array",
            "optional": false,
            "field": "menuData",
            "description": "<p>菜单数组</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "请求示例:",
          "content": "{\n  menuData : [\n          {\n              \"name\": \"welcome\",\n              \"defaultValue\": \"welcome\",\n              \"path\": \"/welcome\",\n              \"key\": \"0\",\n              \"disableCheckbox\": true,\n              \"icon\": \"smile\",\n              \"children\": null\n          },\n          {\n              \"name\": \"menuManager\",\n              \"defaultValue\": \"menuManager\",\n              \"path\": \"/menuManager\",\n              \"key\": \"1\",\n              \"authority\": [\n                  \"admin\",\n                  \"测试124\"\n              ],\n              \"icon\": \"menu\",\n              \"children\": null\n          },\n          {\n              \"name\": \"manager\",\n              \"path\": \"/manager\",\n              \"key\": \"qBB2bANuNxmxSd8QS-0-h\",\n              \"authority\": [\n                  \"admin\"\n              ],\n              \"icon\": \"crown\",\n              \"children\": [\n                  {\n                      \"name\": \"userManager\",\n                      \"path\": \"/manager/userManager\",\n                      \"key\": \"JOjWw7GPBFUas3asoF4yW\",\n                      \"authority\": [\n                          \"admin\"\n                      ],\n                      \"icon\": \"userManager\",\n                      \"parentKey\": \"qBB2bANuNxmxSd8QS-0-h\",\n                      \"children\": [\n                          {\n                              \"name\": \"userList\",\n                              \"path\": \"/manager/userManager/find\",\n                              \"key\": \"jO0_MAx6Sszd3NNO5U4vH\",\n                              \"authority\": [\n                                  \"admin\"\n                              ],\n                              \"icon\": \"list\",\n                              \"parentKey\": \"JOjWw7GPBFUas3asoF4yW\",\n                              \"children\": null\n                          },\n                          {\n                              \"name\": \"manageUser\",\n                              \"path\": \"/manager/userManager/manage\",\n                              \"key\": \"3P7s9z1NgDHplYBWj6C5r\",\n                              \"authority\": [\n                                  \"admin\"\n                              ],\n                              \"icon\": \"user\",\n                              \"parentKey\": \"JOjWw7GPBFUas3asoF4yW\",\n                              \"children\": null\n                          }\n                      ]\n                  },\n                  {\n                      \"name\": \"roleManager\",\n                      \"path\": \"/manager/roleManager\",\n                      \"key\": \"M0MeRZzt2ufvwaPLUql1K\",\n                      \"authority\": [\n                          \"admin\"\n                      ],\n                      \"icon\": \"crown\",\n                      \"parentKey\": \"qBB2bANuNxmxSd8QS-0-h\",\n                      \"children\": [\n                          {\n                              \"name\": \"roleList\",\n                              \"path\": \"/manager/roleManager/find\",\n                              \"key\": \"9p7DJAfERQydE1CLfW8mP\",\n                              \"authority\": [\n                                  \"admin\"\n                              ],\n                              \"icon\": \"list\",\n                              \"parentKey\": \"M0MeRZzt2ufvwaPLUql1K\",\n                              \"children\": null\n                          },\n                          {\n                              \"name\": \"roleCreate\",\n                              \"path\": \"/manager/roleManager/create\",\n                              \"key\": \"NNanzoLUOtZyBK45G4PYY\",\n                              \"authority\": [\n                                  \"admin\"\n                              ],\n                              \"icon\": \"user\",\n                              \"parentKey\": \"M0MeRZzt2ufvwaPLUql1K\",\n                              \"children\": null\n                          }\n                      ]\n                  }\n              ]\n}",
          "type": "type"
        }
      ]
    },
    "success": {
      "fields": {
        "200": [
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "type",
            "description": ""
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "currentAuthority",
            "description": "<p>当前权限角色</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "user",
            "description": "<p>用户名</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "token",
            "description": "<p>token</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "返回示例:",
          "content": " {\n    \"data\": {\n        \"menuData\": [\n            {\n                \"name\": \"welcome\",\n                \"defaultValue\": \"welcome\",\n                \"path\": \"/welcome\",\n                \"key\": \"0\",\n                \"disableCheckbox\": true,\n                \"icon\": \"smile\",\n                \"children\": null\n            },\n            {\n                \"name\": \"menuManager\",\n                \"defaultValue\": \"menuManager\",\n                \"path\": \"/menuManager\",\n                \"key\": \"1\",\n                \"authority\": [\n                    \"admin\",\n                    \"测试124\"\n                ],\n                \"icon\": \"menu\",\n                \"children\": null\n            },\n            {\n                \"name\": \"manager\",\n                \"path\": \"/manager\",\n                \"key\": \"qBB2bANuNxmxSd8QS-0-h\",\n                \"authority\": [\n                    \"admin\"\n                ],\n                \"icon\": \"crown\",\n                \"children\": [\n                    {\n                        \"name\": \"userManager\",\n                        \"path\": \"/manager/userManager\",\n                        \"key\": \"JOjWw7GPBFUas3asoF4yW\",\n                        \"authority\": [\n                            \"admin\"\n                        ],\n                        \"icon\": \"userManager\",\n                        \"parentKey\": \"qBB2bANuNxmxSd8QS-0-h\",\n                        \"children\": [\n                            {\n                                \"name\": \"userList\",\n                                \"path\": \"/manager/userManager/find\",\n                                \"key\": \"jO0_MAx6Sszd3NNO5U4vH\",\n                                \"authority\": [\n                                    \"admin\"\n                                ],\n                                \"icon\": \"list\",\n                                \"parentKey\": \"JOjWw7GPBFUas3asoF4yW\",\n                                \"children\": null\n                            },\n                            {\n                                \"name\": \"manageUser\",\n                                \"path\": \"/manager/userManager/manage\",\n                                \"key\": \"3P7s9z1NgDHplYBWj6C5r\",\n                                \"authority\": [\n                                    \"admin\"\n                                ],\n                                \"icon\": \"user\",\n                                \"parentKey\": \"JOjWw7GPBFUas3asoF4yW\",\n                                \"children\": null\n                            }\n                        ]\n                    },\n                    {\n                        \"name\": \"roleManager\",\n                        \"path\": \"/manager/roleManager\",\n                        \"key\": \"M0MeRZzt2ufvwaPLUql1K\",\n                        \"authority\": [\n                            \"admin\"\n                        ],\n                        \"icon\": \"crown\",\n                        \"parentKey\": \"qBB2bANuNxmxSd8QS-0-h\",\n                        \"children\": [\n                            {\n                                \"name\": \"roleList\",\n                                \"path\": \"/manager/roleManager/find\",\n                                \"key\": \"9p7DJAfERQydE1CLfW8mP\",\n                                \"authority\": [\n                                    \"admin\"\n                                ],\n                                \"icon\": \"list\",\n                                \"parentKey\": \"M0MeRZzt2ufvwaPLUql1K\",\n                                \"children\": null\n                            },\n                            {\n                                \"name\": \"roleCreate\",\n                                \"path\": \"/manager/roleManager/create\",\n                                \"key\": \"NNanzoLUOtZyBK45G4PYY\",\n                                \"authority\": [\n                                    \"admin\"\n                                ],\n                                \"icon\": \"user\",\n                                \"parentKey\": \"M0MeRZzt2ufvwaPLUql1K\",\n                                \"children\": null\n                            }\n                        ]\n                    }\n                ]\n            }\n        ],\n        \"_id\": \"60de811de14c123cb9038579\",\n        \"registerTime\": \"2021-07-02T02:59:41.374Z\",\n        \"__v\": 0\n    },\n    \"message\": \"菜单更新成功\",\n    \"code\": 0\n}",
          "type": "type"
        }
      ]
    },
    "filename": "router/menu.js",
    "groupTitle": "菜单"
  },
  {
    "type": "get",
    "url": "/menu",
    "title": "菜单列表查询",
    "name": "菜单列表查询",
    "group": "菜单",
    "version": "1.0.0",
    "success": {
      "fields": {
        "200": [
          {
            "group": "200",
            "type": "Array",
            "optional": false,
            "field": "menuData",
            "description": "<p>菜单数组数据</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "返回示例:",
          "content": " {\n    \"data\": {\n        \"menuData\": [\n            {\n                \"name\": \"welcome\",\n                \"defaultValue\": \"welcome\",\n                \"path\": \"/welcome\",\n                \"key\": \"0\",\n                \"disableCheckbox\": true,\n                \"icon\": \"smile\",\n                \"children\": null\n            },\n            {\n                \"name\": \"menuManager\",\n                \"defaultValue\": \"menuManager\",\n                \"path\": \"/menuManager\",\n                \"key\": \"1\",\n                \"authority\": [\n                    \"admin\",\n                    \"测试124\"\n                ],\n                \"icon\": \"menu\",\n                \"children\": null\n            },\n            {\n                \"name\": \"manager\",\n                \"path\": \"/manager\",\n                \"key\": \"qBB2bANuNxmxSd8QS-0-h\",\n                \"authority\": [\n                    \"admin\"\n                ],\n                \"icon\": \"crown\",\n                \"children\": [\n                    {\n                        \"name\": \"userManager\",\n                        \"path\": \"/manager/userManager\",\n                        \"key\": \"JOjWw7GPBFUas3asoF4yW\",\n                        \"authority\": [\n                            \"admin\"\n                        ],\n                        \"icon\": \"userManager\",\n                        \"parentKey\": \"qBB2bANuNxmxSd8QS-0-h\",\n                        \"children\": [\n                            {\n                                \"name\": \"userList\",\n                                \"path\": \"/manager/userManager/find\",\n                                \"key\": \"jO0_MAx6Sszd3NNO5U4vH\",\n                                \"authority\": [\n                                    \"admin\"\n                                ],\n                                \"icon\": \"list\",\n                                \"parentKey\": \"JOjWw7GPBFUas3asoF4yW\",\n                                \"children\": null\n                            },\n                            {\n                                \"name\": \"manageUser\",\n                                \"path\": \"/manager/userManager/manage\",\n                                \"key\": \"3P7s9z1NgDHplYBWj6C5r\",\n                                \"authority\": [\n                                    \"admin\"\n                                ],\n                                \"icon\": \"user\",\n                                \"parentKey\": \"JOjWw7GPBFUas3asoF4yW\",\n                                \"children\": null\n                            }\n                        ]\n                    },\n                    {\n                        \"name\": \"roleManager\",\n                        \"path\": \"/manager/roleManager\",\n                        \"key\": \"M0MeRZzt2ufvwaPLUql1K\",\n                        \"authority\": [\n                            \"admin\"\n                        ],\n                        \"icon\": \"crown\",\n                        \"parentKey\": \"qBB2bANuNxmxSd8QS-0-h\",\n                        \"children\": [\n                            {\n                                \"name\": \"roleList\",\n                                \"path\": \"/manager/roleManager/find\",\n                                \"key\": \"9p7DJAfERQydE1CLfW8mP\",\n                                \"authority\": [\n                                    \"admin\"\n                                ],\n                                \"icon\": \"list\",\n                                \"parentKey\": \"M0MeRZzt2ufvwaPLUql1K\",\n                                \"children\": null\n                            },\n                            {\n                                \"name\": \"roleCreate\",\n                                \"path\": \"/manager/roleManager/create\",\n                                \"key\": \"NNanzoLUOtZyBK45G4PYY\",\n                                \"authority\": [\n                                    \"admin\"\n                                ],\n                                \"icon\": \"user\",\n                                \"parentKey\": \"M0MeRZzt2ufvwaPLUql1K\",\n                                \"children\": null\n                            }\n                        ]\n                    }\n                ]\n            }\n        ],\n        \"_id\": \"60de811de14c123cb9038579\",\n        \"registerTime\": \"2021-07-02T02:59:41.374Z\",\n        \"__v\": 0\n    },\n    \"message\": \"获取菜单成功\",\n    \"code\": 0\n}",
          "type": "type"
        }
      ]
    },
    "filename": "router/menu.js",
    "groupTitle": "菜单"
  },
  {
    "type": "post",
    "url": "/createrole",
    "title": "创建角色",
    "name": "创建角色",
    "group": "角色管理",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "name",
            "description": "<p>角色名</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "请求示例:",
          "content": "{\n  name: \"测试222\"\n}",
          "type": "type"
        }
      ]
    },
    "success": {
      "examples": [
        {
          "title": "返回示例:",
          "content": "{\n    \"message\": \"添加角色成功\",\n    \"code\": 0\n}",
          "type": "type"
        }
      ]
    },
    "filename": "router/role.js",
    "groupTitle": "角色管理"
  },
  {
    "type": "post",
    "url": "/removerole",
    "title": "删除角色",
    "name": "删除角色",
    "group": "角色管理",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "name",
            "description": "<p>角色名</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "请求示例:",
          "content": "{\n  name: \"测试222\"\n}",
          "type": "type"
        }
      ]
    },
    "success": {
      "examples": [
        {
          "title": "返回示例:",
          "content": "{\n    success: true,\n    message: '删除成功',\n    code: 0\n}",
          "type": "type"
        }
      ]
    },
    "filename": "router/role.js",
    "groupTitle": "角色管理"
  },
  {
    "type": "post",
    "url": "/updaterole",
    "title": "角色更新",
    "name": "角色更新",
    "group": "角色管理",
    "version": "1.0.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "name",
            "description": "<p>要修改的用户名</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "updateName",
            "description": "<p>修改后的用户名</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "请求示例:",
          "content": "{\n  name: \"测试124\"\n  updateName: \"测试1额\"\n}",
          "type": "type"
        }
      ]
    },
    "success": {
      "fields": {
        "200": [
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "_id",
            "description": "<p>角色id</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "name",
            "description": "<p>被修改的角色名</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "registerTime",
            "description": "<p>注册时间</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "返回示例:",
          "content": "{\n  \"data\": {\n      \"_id\": \"60dd9b16f8dde028a5380257\",\n      \"name\": \"测试124\",\n      \"registerTime\": \"2021-07-01T10:38:14.964Z\",\n      \"__v\": 0\n  },\n  \"message\": \"角色更新成功\",\n  \"code\": 0\n}",
          "type": "type"
        }
      ]
    },
    "filename": "router/role.js",
    "groupTitle": "角色管理"
  },
  {
    "type": "get",
    "url": "/findrole",
    "title": "角色查询",
    "name": "角色查询",
    "group": "角色管理",
    "version": "1.0.0",
    "success": {
      "fields": {
        "200": [
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "_id",
            "description": "<p>角色id</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "name",
            "description": "<p>被修改的角色名</p>"
          },
          {
            "group": "200",
            "type": "string",
            "optional": false,
            "field": "registerTime",
            "description": "<p>注册时间</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "返回示例:",
          "content": " {\n    \"success\": true,\n    \"data\": [\n        {\n            \"_id\": \"60dd7266267bcd1ad9fe2657\",\n            \"name\": \"测试test\",\n            \"registerTime\": \"2021-07-01T07:44:38.783Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"60dd78e1267bcd1ad9fe2693\",\n            \"name\": \"admin\",\n            \"registerTime\": \"2021-07-01T08:12:17.756Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"60dd91c9f8dde028a53801e6\",\n            \"name\": \"测试2\",\n            \"registerTime\": \"2021-07-01T09:58:33.493Z\",\n            \"__v\": 0\n        },\n    ],\n    \"message\": \"查询角色成功\",\n    \"code\": 0\n}",
          "type": "type"
        }
      ]
    },
    "filename": "router/role.js",
    "groupTitle": "角色管理"
  }
] });
